]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Connect signals to both text and password entries
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 6 Feb 2020 20:27:20 +0000 (17:27 -0300)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 12 Feb 2020 19:29:48 +0000 (19:29 +0000)
This is a regression from the transition to password entry. Both
entries need to be connected to the relevant signals, otherwise
username-based login won't ever work.

Connect both the text and the password entries.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922

js/gdm/authPrompt.js

index 1a36b994e237a4406200ee7ef324214d1c72741a..d29414004bf7be0fc3a8dcf3df0bc643691231d3 100644 (file)
@@ -159,14 +159,16 @@ var AuthPrompt = GObject.registerClass({
         this._mainBox.add_child(this._entry);
         this._entry.grab_key_focus();
 
-        this._entry.clutter_text.connect('text-changed', () => {
-            if (!this._userVerifier.hasPendingMessages)
-                this._fadeOutMessage();
-        });
-
-        this._entry.clutter_text.connect('activate', () => {
-            if (this._entry.reactive)
-                this.emit('next');
+        [this._textEntry, this._passwordEntry].forEach(entry => {
+            entry.clutter_text.connect('text-changed', () => {
+                if (!this._userVerifier.hasPendingMessages)
+                    this._fadeOutMessage();
+            });
+
+            entry.clutter_text.connect('activate', () => {
+                if (entry.reactive)
+                    this.emit('next');
+            });
         });
 
         this._defaultButtonWell = new St.Widget({